/*$("#search").click(
		$(function() {
			var keyword = $(".searchInput").val();
			$.ajax({
				type : "GET",
				url : "/eshop/pcEshopList.htm",
				data:{"keyWord":keyword},
				dataType : "html",

			})
		})	
);*/
$('#search').click(function(){
	var keyword = $(".searchInput").val();
	$.ajax({
		type : "GET",
		url : "/eshop/pcEshopList.htm",
		data:{"keyWord":keyword},
		dataType : "html",
		success:function(data){
			//success
			window.location.href="/eshop/pcEshopList.htm?keyWord="+keyword;
		}
	})
})



$('.dropOut').click(function(){
	$.ajax({
		type : "get",
		url : "/eshop/user/signoutAction.json",
		dataType : "json",
		data:{},
		success:function(data){
			window.location.href="/eshop/pcindex.htm";
		}
	})
})


window.onscroll = function(){
	var top = document.documentElement.scrollTop || document.body.scrollTop;
	gotoTop(top);
	$('.gotoTop').on('click',function(){
		document.documentElement.scrollTop = 0;
		document.body.scrollTop = 0;
	})
}

function gotoTop(top){
	if(top > 450){
		//出现回到顶部箭头
		$('.gotoTop').show();
	}else{
		//隐藏回到顶部箭头
		$('.gotoTop').hide();
	}
}
